/**
 * This code is released under lgpl v3 license.
 * All rights reserved.
*/

package bridge;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * FABridge overlay type
 * @author yuan yunchang    dukerr@gmail.com
 */
public class FABridge extends JavaScriptObject{
    public static final String EMPTY_SWF = "EmptyFABridgeSWF.swf";

    protected FABridge() {
    }
    public static native final FABridge get()/*-{
    return $wnd.FABridge;
    }-*/;
    public native final void addInitializationCallback(String bridgeName,JavaScriptObject callback)/*-{
    this.addInitializationCallback(bridgeName,callback)
    }-*/;
    public native final FABridgeInstance getInstance(String bridgeName)/*-{
    return $wnd.FABridge[bridgeName]
    }-*/;
    public  native final boolean initComplete(String bridgeName)/*-{
        if($wnd.FABridge[bridgeName]){
            return true;
        }else{
            return false;
        }
    }-*/;
}
